package validate

import (
	"gin/common"
)

type AddPlayWrapper struct {
	Data Play `json:"data" binding:"required"`
}

type Play struct {
	Name        string `json:"name" binding:"max=255"  `
	Description string `json:"description" binding:"max=512"  `
	StoryId     uint64 `json:"story_id" binding:"required" `
	Sort        uint8  `json:"sort" binding:"max=65534"  `
	SceneId     uint64 `json:"scene_id"  `
}

type UpdatePlayWrapper struct {
	Data struct {
		Id          uint64 `json:"id" binding:"required"`
		Name        string `json:"name" binding:"max=255"`
		Description string `json:"description" binding:"max=512"`
		StoryId     uint64 `json:"story_id"`
		Sort        uint8  `json:"sort" binding:"max=65534" `
		SceneId     uint64 `json:"scene_id" `
	} `json:"data" binding:"required"`
}

type SelectPlayQuery struct {
	Param common.QueryParam `json:"param" binding:"required"`
}

type DeletePlayParam struct {
	Param common.Filter `json:"param" binding:"required"`
}

type UploadMediaPlayParam struct {
	PlayId uint64 `form:"play_id" binding:"required"`
}

type PlayVideoList struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
}
